package health

import (
	"gitcode.com/G-YT/ANN/server/api/v1"
	"gitcode.com/G-YT/ANN/server/middleware"
	"github.com/gin-gonic/gin"
)

type FdJqRouter struct {
}

// InitFdJqRouter 初始化 节气 路由信息
func (s *FdJqRouter) InitFdJqRouter(Router *gin.RouterGroup) {
	fdJqRouter := Router.Group("fdJq").Use(middleware.OperationRecord())
	fdJqRouterWithoutRecord := Router.Group("fdJq")
	var fdJqApi = v1.ApiGroupApp.HealthApiGroup.FdJqApi
	{
		fdJqRouter.POST("createFdJq", fdJqApi.CreateFdJq)             // 新建节气
		fdJqRouter.DELETE("deleteFdJq", fdJqApi.DeleteFdJq)           // 删除节气
		fdJqRouter.DELETE("deleteFdJqByIds", fdJqApi.DeleteFdJqByIds) // 批量删除节气
		fdJqRouter.PUT("updateFdJq", fdJqApi.UpdateFdJq)              // 更新节气
		fdJqRouter.POST("setFdJqGraphic", fdJqApi.SetFdJqGraphic)     // 设置节气文章关系
		fdJqRouter.GET("getFdJqGraphic", fdJqApi.GetFdJqGraphic)      // 获取节气文章关系
	}
	{
		fdJqRouterWithoutRecord.GET("findFdJq", fdJqApi.FindFdJq)       // 根据ID获取节气
		fdJqRouterWithoutRecord.GET("getFdJqList", fdJqApi.GetFdJqList) // 获取节气列表
	}
}
